<%@ include file="/WEB-INF/html/skillManagement/common/init.jsp" %>

<%
String portletPrefix = "org.openwork.portlet.skillmanagement.";
String tabs1 = ParamUtil.get(request, WebKeys.TABS1_PARAM, "mySkills");
String tabs1Values = "mySkills";
String tabs1Names = portletPrefix + tabs1Values;

if(SkillManagementPermissionUtil.contains(permissionChecker, scopeGroupId, SkillUserActions.MANAGE_SKILL_USER)) {
	tabs1Values += ",skillManagement";
	tabs1Names += "," + portletPrefix + "skillManagement";
}

PortletURL tabs1URL = renderResponse.createRenderURL();
tabs1URL.setParameter("struts.portlet.action", "/view/view");
tabs1URL.setParameter(WebKeys.TABS1_PARAM, tabs1);
tabs1URL.setWindowState(LiferayWindowState.MAXIMIZED);

%> 
<liferay-ui:tabs
	names="<%= tabs1Names %>"
	tabsValues="<%= tabs1Values %>"
	portletURL="<%= tabs1URL %>"
/>

<c:choose>
	<c:when test="<%= "mySkills".equals(tabs1) %>">
		<%@ include file="/WEB-INF/html/skillManagement/view/viewMySkills.jspf" %>
	</c:when>
	<c:when test="<%= "skillManagement".equals(tabs1) %>">
		<%@ include file="/WEB-INF/html/skillManagement/view/viewSkillManagement.jspf" %>
	</c:when>
</c:choose>